import request from '@/utils/request'
export function getClusterList({ page, type }) {
  return request({
    url: '/admin/spell_group/list',
    method: 'get',
    params: { page, type }
  })
}
export function upDataActivetyStatus({ id, is_publish }) {
  return request({
    url: '/admin/spell_group/updateActiveStatus',
    method: 'post',
    params: { id, is_publish }
  })
}
export function getActiveStatusNum() {
  return request({
    url: '/admin/spell_group/getActiveState',
    method: 'get'
  })
}
export function addOrEditCluster({ id, start_time, end_time, team_num, price, course_id, course_chapter_id }) {
  return request({
    url: '/admin/spell_group/add',
    method: 'post',
    params: { id, start_time, end_time, team_num, price, course_id, course_chapter_id }
  })
}
